<?php
	$host = "ap-cdbr-azure-east-a.cloudapp.net";
	$user = "b6b9e4105aac0f";
	$pass = "bd7e730e";
	$dbname = "bugbase";
	$conn = mysql_connect($host,$user,$pass);
	if($conn)
	{
		mysql_select_db($dbname);
		mysql_query("SET NAMES 'utf8'");
        date_default_timezone_set("Asia/Ho_Chi_Minh");
		//echo "connected";
	}
	else
	{
		echo "<script>alert('could not connect to database')</script>";
		echo "<script>window.location.href = '../index.php'</script>";
	}
?>